<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>Locale::Codes - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of Locale-Codes - MetaCPAN" href="https://metacpan.org/dist/Locale-Codes/releases.rss" />
        <link rel="canonical" href="./Locale::Codes.html" />
        <meta name="description" content="a distribution of modules to handle locale codes" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/Locale::Codes" />
<meta name="twitter:title"       content="Locale::Codes" />
<meta name="twitter:description" content="" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./Locale::Codes.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of Locale-Codes was released.">
      <span class="relatize">01 Dec 2023 20:43:33 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/Locale-Codes">Locale-Codes</a>
  </li>
  <li>
    Module version: 3.77
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/Locale-Codes/source/lib/Locale/Codes.pm">Source</a>
    (<a href="https://metacpan.org/dist/Locale-Codes/source/lib/Locale/Codes.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g p" href="https://metacpan.org/dist/Locale-Codes/source/lib/Locale/Codes.pod">Pod Source</a>
    (<a href="https://metacpan.org/dist/Locale-Codes/source/lib/Locale/Codes.pod?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/Locale-Codes/source/lib/Locale">Browse</a>
    (<a href="https://metacpan.org/dist/Locale-Codes/source/lib/Locale?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/Locale-Codes/changes">Changes</a>
    </li>
    <li>
      <a rel="noopener nofollow" class="nopopup" href="https://github.com/SBECK-github/Locale-Codes">Homepage</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/Locale-Codes/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/SBECK-github/Locale-Codes">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/SBECK-github/Locale-Codes/issues">Issues</a>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=Locale-Codes+3.77" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/L/Locale-Codes.html?oncpan=1&amp;distmat=1&amp;version=3.77&amp;grade=2" style="color: #090">383</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/L/Locale-Codes.html?oncpan=1&amp;distmat=1&amp;version=3.77&amp;grade=3" style="color: #900">0</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/L/Locale-Codes.html?oncpan=1&amp;distmat=1&amp;version=3.77&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/SBECK/Locale-Codes-3.77">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on Locale-Codes who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 5
      </div>
    </li>
    <li>
      License: perl_5
    </li>
    <li>
      Perl: v5.6.0
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/Locale-Codes/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/S/SB/SBECK/Locale-Codes-3.77.tar.gz">
      Download (<span itemprop="fileSize">852.9KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FSBECK%2FLocale-Codes-3.77%2Flib%2FLocale%2FCodes.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Locale-Codes/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Locale-Codes/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:Locale-Codes">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="Locale-Codes">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Locale/Codes.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="SBECK/Locale-Codes-3.77"
>3.77
  (SBECK on 2023-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.76"
>3.76
  (SBECK on 2023-09-05)</option>
<optgroup label="BackPAN">'
<option
  
  value="SBECK/Locale-Codes-3.75"
>3.75
  (SBECK on 2023-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.74"
>3.74
  (SBECK on 2023-06-07)</option>
<option
  
  value="SBECK/Locale-Codes-3.73"
>3.73
  (SBECK on 2023-03-06)</option>
<option
  
  value="SBECK/Locale-Codes-3.72"
>3.72
  (SBECK on 2022-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.71"
>3.71
  (SBECK on 2022-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.70"
>3.70
  (SBECK on 2022-03-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.69"
>3.69
  (SBECK on 2021-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.68"
>3.68
  (SBECK on 2021-09-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.67"
>3.67
  (SBECK on 2021-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.66"
>3.66
  (SBECK on 2020-11-30)</option>
<option
  
  value="SBECK/Locale-Codes-3.65"
>3.65
  (SBECK on 2020-09-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.64"
>3.64
  (SBECK on 2020-06-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.63"
>3.63
  (SBECK on 2020-03-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.62"
>3.62
  (SBECK on 2019-08-29)</option>
<option
  
  value="SBECK/Locale-Codes-3.61"
>3.61
  (SBECK on 2019-06-03)</option>
<option
  
  value="SBECK/Locale-Codes-3.60"
>3.60
  (SBECK on 2019-02-28)</option>
<option
  
  value="SBECK/Locale-Codes-3.59"
>3.59
  (SBECK on 2018-12-03)</option>
<option
  
  value="SBECK/Locale-Codes-3.58"
>3.58
  (SBECK on 2018-08-31)</option>
<option
  
  value="SBECK/Locale-Codes-3.57"
>3.57
  (SBECK on 2018-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.56"
>3.56
  (SBECK on 2018-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.55"
>3.55
  (SBECK on 2017-11-17)</option>
<option
  
  value="SBECK/Locale-Codes-3.54"
>3.54
  (SBECK on 2017-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.53"
>3.53
  (SBECK on 2017-07-25)</option>
<option
  
  value="SBECK/Locale-Codes-3.52"
>3.52
  (SBECK on 2017-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.51"
>3.51
  (SBECK on 2017-04-10)</option>
<option
  
  value="SBECK/Locale-Codes-3.50"
>3.50
  (SBECK on 2017-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.42"
>3.42
  (SBECK on 2016-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.41"
>3.41
  (SBECK on 2016-11-18)</option>
<option
  
  value="SBECK/Locale-Codes-3.40"
>3.40
  (SBECK on 2016-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.39"
>3.39
  (SBECK on 2016-05-31)</option>
<option
  
  value="SBECK/Locale-Codes-3.38"
>3.38
  (SBECK on 2016-03-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.37"
>3.37
  (SBECK on 2015-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.36"
>3.36
  (SBECK on 2015-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.35"
>3.35
  (SBECK on 2015-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.34"
>3.34
  (SBECK on 2015-03-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.33"
>3.33
  (SBECK on 2014-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.32"
>3.32
  (SBECK on 2014-09-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.31"
>3.31
  (SBECK on 2014-06-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.30"
>3.30
  (SBECK on 2014-03-04)</option>
<option
  
  value="SBECK/Locale-Codes-3.29"
>3.29
  (SBECK on 2014-01-27)</option>
<option
  
  value="SBECK/Locale-Codes-3.28"
>3.28
  (SBECK on 2013-12-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.27"
>3.27
  (SBECK on 2013-09-05)</option>
<option
  
  value="SBECK/Locale-Codes-3.26"
>3.26
  (SBECK on 2013-06-03)</option>
<option
  
  value="SBECK/Locale-Codes-3.25"
>3.25
  (SBECK on 2013-02-28)</option>
<option
  
  value="SBECK/Locale-Codes-3.24"
>3.24
  (SBECK on 2012-12-04)</option>
<option
  
  value="SBECK/Locale-Codes-3.23"
>3.23
  (SBECK on 2012-08-31)</option>
<option
  
  value="SBECK/Locale-Codes-3.22"
>3.22
  (SBECK on 2012-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.21"
>3.21
  (SBECK on 2012-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.20"
>3.20
  (SBECK on 2011-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.18"
>3.18
  (SBECK on 2011-08-31)</option>
<option
  
  value="SBECK/Locale-Codes-3.17"
>3.17
  (SBECK on 2011-06-28)</option>
<option
  
  value="SBECK/Locale-Codes-3.16"
>3.16
  (SBECK on 2011-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.15"
>3.15
  (SBECK on 2010-12-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.14"
>3.14
  (SBECK on 2010-09-28)</option>
<option
  
  value="SBECK/Locale-Codes-3.13"
>3.13
  (SBECK on 2010-06-04)</option>
<option
  
  value="SBECK/Locale-Codes-3.12"
>3.12
  (SBECK on 2010-04-06)</option>
<option
  
  value="SBECK/Locale-Codes-3.11"
>3.11
  (SBECK on 2010-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.10"
>3.10
  (SBECK on 2010-02-18)</option>
<option
  
  value="SBECK/Locale-Codes-3.01"
>3.01
  (SBECK on 2010-02-15)</option>
<option
  
  value="SBECK/Locale-Codes-3.00"
>3.00
  (SBECK on 2010-02-10)</option>
<option
  
  value="NEILB/Locale-Codes-2.07"
>2.07
  (NEILB on 2004-06-10)</option>
<option
  
  value="NEILB/Locale-Codes-2.06"
>2.06
  (NEILB on 2002-07-16)</option>
<option
  
  value="NEILB/Locale-Codes-2.05"
>2.05
  (NEILB on 2002-07-09)</option>
<option
  
  value="NEILB/Locale-Codes-2.04"
>2.04
  (NEILB on 2002-05-23)</option>
<option
  
  value="NEILB/Locale-Codes-2.03"
>2.03
  (NEILB on 2002-03-24)</option>
<option
  
  value="NEILB/Locale-Codes-2.02"
>2.02
  (NEILB on 2002-03-10)</option>
<option
  
  value="NEILB/Locale-Codes-2.01"
>2.01
  (NEILB on 2002-02-18)</option>
<option
  
  value="NEILB/Locale-Codes-1.06"
>1.06
  (NEILB on 2001-03-04)</option>
<option
  
  value="NEILB/Locale-Codes-1.05"
>1.05
  (NEILB on 2001-02-13)</option>
<option
  
  value="NEILB/Locale-Codes-1.04"
>1.04
  (NEILB on 2000-12-21)</option>
<option
  
  value="NEILB/Locale-Codes-1.02"
>1.02
  (NEILB on 2000-05-04)</option>
<option
  
  value="NEILB/Locale-Codes-1.00"
>1.00
  (NEILB on 1998-03-09)</option>
<option
  
  value="NEILB/Locale-Codes-0.003"
>0.003
  (NEILB on 1997-05-10)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/SBECK/Locale-Codes-3.77/diff/' + encodeURIComponent(this.value) + '/lib/Locale/Codes.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="SBECK/Locale-Codes-3.77"
>3.77
  (SBECK on 2023-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.76"
>3.76
  (SBECK on 2023-09-05)</option>
<optgroup label="BackPAN">'
<option
  
  value="SBECK/Locale-Codes-3.75"
>3.75
  (SBECK on 2023-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.74"
>3.74
  (SBECK on 2023-06-07)</option>
<option
  
  value="SBECK/Locale-Codes-3.73"
>3.73
  (SBECK on 2023-03-06)</option>
<option
  
  value="SBECK/Locale-Codes-3.72"
>3.72
  (SBECK on 2022-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.71"
>3.71
  (SBECK on 2022-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.70"
>3.70
  (SBECK on 2022-03-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.69"
>3.69
  (SBECK on 2021-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.68"
>3.68
  (SBECK on 2021-09-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.67"
>3.67
  (SBECK on 2021-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.66"
>3.66
  (SBECK on 2020-11-30)</option>
<option
  
  value="SBECK/Locale-Codes-3.65"
>3.65
  (SBECK on 2020-09-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.64"
>3.64
  (SBECK on 2020-06-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.63"
>3.63
  (SBECK on 2020-03-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.62"
>3.62
  (SBECK on 2019-08-29)</option>
<option
  
  value="SBECK/Locale-Codes-3.61"
>3.61
  (SBECK on 2019-06-03)</option>
<option
  
  value="SBECK/Locale-Codes-3.60"
>3.60
  (SBECK on 2019-02-28)</option>
<option
  
  value="SBECK/Locale-Codes-3.59"
>3.59
  (SBECK on 2018-12-03)</option>
<option
  
  value="SBECK/Locale-Codes-3.58"
>3.58
  (SBECK on 2018-08-31)</option>
<option
  
  value="SBECK/Locale-Codes-3.57"
>3.57
  (SBECK on 2018-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.56"
>3.56
  (SBECK on 2018-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.55"
>3.55
  (SBECK on 2017-11-17)</option>
<option
  
  value="SBECK/Locale-Codes-3.54"
>3.54
  (SBECK on 2017-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.53"
>3.53
  (SBECK on 2017-07-25)</option>
<option
  
  value="SBECK/Locale-Codes-3.52"
>3.52
  (SBECK on 2017-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.51"
>3.51
  (SBECK on 2017-04-10)</option>
<option
  
  value="SBECK/Locale-Codes-3.50"
>3.50
  (SBECK on 2017-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.42"
>3.42
  (SBECK on 2016-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.41"
>3.41
  (SBECK on 2016-11-18)</option>
<option
  
  value="SBECK/Locale-Codes-3.40"
>3.40
  (SBECK on 2016-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.39"
>3.39
  (SBECK on 2016-05-31)</option>
<option
  
  value="SBECK/Locale-Codes-3.38"
>3.38
  (SBECK on 2016-03-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.37"
>3.37
  (SBECK on 2015-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.36"
>3.36
  (SBECK on 2015-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.35"
>3.35
  (SBECK on 2015-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.34"
>3.34
  (SBECK on 2015-03-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.33"
>3.33
  (SBECK on 2014-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.32"
>3.32
  (SBECK on 2014-09-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.31"
>3.31
  (SBECK on 2014-06-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.30"
>3.30
  (SBECK on 2014-03-04)</option>
<option
  
  value="SBECK/Locale-Codes-3.29"
>3.29
  (SBECK on 2014-01-27)</option>
<option
  
  value="SBECK/Locale-Codes-3.28"
>3.28
  (SBECK on 2013-12-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.27"
>3.27
  (SBECK on 2013-09-05)</option>
<option
  
  value="SBECK/Locale-Codes-3.26"
>3.26
  (SBECK on 2013-06-03)</option>
<option
  
  value="SBECK/Locale-Codes-3.25"
>3.25
  (SBECK on 2013-02-28)</option>
<option
  
  value="SBECK/Locale-Codes-3.24"
>3.24
  (SBECK on 2012-12-04)</option>
<option
  
  value="SBECK/Locale-Codes-3.23"
>3.23
  (SBECK on 2012-08-31)</option>
<option
  
  value="SBECK/Locale-Codes-3.22"
>3.22
  (SBECK on 2012-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.21"
>3.21
  (SBECK on 2012-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.20"
>3.20
  (SBECK on 2011-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.18"
>3.18
  (SBECK on 2011-08-31)</option>
<option
  
  value="SBECK/Locale-Codes-3.17"
>3.17
  (SBECK on 2011-06-28)</option>
<option
  
  value="SBECK/Locale-Codes-3.16"
>3.16
  (SBECK on 2011-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.15"
>3.15
  (SBECK on 2010-12-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.14"
>3.14
  (SBECK on 2010-09-28)</option>
<option
  
  value="SBECK/Locale-Codes-3.13"
>3.13
  (SBECK on 2010-06-04)</option>
<option
  
  value="SBECK/Locale-Codes-3.12"
>3.12
  (SBECK on 2010-04-06)</option>
<option
  
  value="SBECK/Locale-Codes-3.11"
>3.11
  (SBECK on 2010-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.10"
>3.10
  (SBECK on 2010-02-18)</option>
<option
  
  value="SBECK/Locale-Codes-3.01"
>3.01
  (SBECK on 2010-02-15)</option>
<option
  
  value="SBECK/Locale-Codes-3.00"
>3.00
  (SBECK on 2010-02-10)</option>
<option
  
  value="NEILB/Locale-Codes-2.07"
>2.07
  (NEILB on 2004-06-10)</option>
<option
  
  value="NEILB/Locale-Codes-2.06"
>2.06
  (NEILB on 2002-07-16)</option>
<option
  
  value="NEILB/Locale-Codes-2.05"
>2.05
  (NEILB on 2002-07-09)</option>
<option
  
  value="NEILB/Locale-Codes-2.04"
>2.04
  (NEILB on 2002-05-23)</option>
<option
  
  value="NEILB/Locale-Codes-2.03"
>2.03
  (NEILB on 2002-03-24)</option>
<option
  
  value="NEILB/Locale-Codes-2.02"
>2.02
  (NEILB on 2002-03-10)</option>
<option
  
  value="NEILB/Locale-Codes-2.01"
>2.01
  (NEILB on 2002-02-18)</option>
<option
  
  value="NEILB/Locale-Codes-1.06"
>1.06
  (NEILB on 2001-03-04)</option>
<option
  
  value="NEILB/Locale-Codes-1.05"
>1.05
  (NEILB on 2001-02-13)</option>
<option
  
  value="NEILB/Locale-Codes-1.04"
>1.04
  (NEILB on 2000-12-21)</option>
<option
  
  value="NEILB/Locale-Codes-1.02"
>1.02
  (NEILB on 2000-05-04)</option>
<option
  
  value="NEILB/Locale-Codes-1.00"
>1.00
  (NEILB on 1998-03-09)</option>
<option
  
  value="NEILB/Locale-Codes-0.003"
>0.003
  (NEILB on 1997-05-10)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/Carp" title="Carp" class="ellipsis">Carp</a></li>
  <li><a href="https://metacpan.org/pod/if" title="if" class="ellipsis">if</a></li>
  <li><a href="https://metacpan.org/pod/utf8" title="utf8" class="ellipsis">utf8</a></li>
  <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/Locale::Codes/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=Locale%3A%3ACodes">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=Locale-Codes">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/SBECK/Locale-Codes-3.77/view/lib/Locale/Codes.pm">This version</a>
    </li>
    <li>
      <a href="./Locale::Codes.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/MICHIELB"><img src="https://www.gravatar.com/avatar/c35b97da3835376f2d804b022121f962?d=identicon&amp;s=20" title="MICHIELB" alt="MICHIELB"></a>
<a class="display-all" href="https://metacpan.org/author/HANNIBAL"><img src="https://www.gravatar.com/avatar/325c153e70a65543b9496e0ad7cdca29?d=identicon&amp;s=20" title="HANNIBAL" alt="HANNIBAL"></a>
<a class="display-all" href="https://metacpan.org/author/JONASBN"><img src="https://www.gravatar.com/avatar/1b053b414cecd279ef44423c75b3d227?d=identicon&amp;s=20" title="JONASBN" alt="JONASBN"></a>
<a class="display-all" href="https://metacpan.org/author/KRAUTCAT"><img src="https://www.gravatar.com/avatar/efd137d1577aa9df7fc833f6306958d5?d=identicon&amp;s=20" title="KRAUTCAT" alt="KRAUTCAT"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/Locale-Codes/plussers">4 PAUSE users</a>
</div>
<div>
    3 non-PAUSE users
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 1 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
    >
      Sullivan Beck (sbeck@cpan.org)
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/SBECK" class="author-name">Sullivan Beck</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Locale/Codes.pm&#39;" class="">
<option
  selected
  value="SBECK/Locale-Codes-3.77"
>3.77
  (SBECK on 2023-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.76"
>3.76
  (SBECK on 2023-09-05)</option>
<optgroup label="BackPAN">'
<option
  
  value="SBECK/Locale-Codes-3.75"
>3.75
  (SBECK on 2023-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.74"
>3.74
  (SBECK on 2023-06-07)</option>
<option
  
  value="SBECK/Locale-Codes-3.73"
>3.73
  (SBECK on 2023-03-06)</option>
<option
  
  value="SBECK/Locale-Codes-3.72"
>3.72
  (SBECK on 2022-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.71"
>3.71
  (SBECK on 2022-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.70"
>3.70
  (SBECK on 2022-03-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.69"
>3.69
  (SBECK on 2021-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.68"
>3.68
  (SBECK on 2021-09-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.67"
>3.67
  (SBECK on 2021-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.66"
>3.66
  (SBECK on 2020-11-30)</option>
<option
  
  value="SBECK/Locale-Codes-3.65"
>3.65
  (SBECK on 2020-09-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.64"
>3.64
  (SBECK on 2020-06-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.63"
>3.63
  (SBECK on 2020-03-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.62"
>3.62
  (SBECK on 2019-08-29)</option>
<option
  
  value="SBECK/Locale-Codes-3.61"
>3.61
  (SBECK on 2019-06-03)</option>
<option
  
  value="SBECK/Locale-Codes-3.60"
>3.60
  (SBECK on 2019-02-28)</option>
<option
  
  value="SBECK/Locale-Codes-3.59"
>3.59
  (SBECK on 2018-12-03)</option>
<option
  
  value="SBECK/Locale-Codes-3.58"
>3.58
  (SBECK on 2018-08-31)</option>
<option
  
  value="SBECK/Locale-Codes-3.57"
>3.57
  (SBECK on 2018-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.56"
>3.56
  (SBECK on 2018-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.55"
>3.55
  (SBECK on 2017-11-17)</option>
<option
  
  value="SBECK/Locale-Codes-3.54"
>3.54
  (SBECK on 2017-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.53"
>3.53
  (SBECK on 2017-07-25)</option>
<option
  
  value="SBECK/Locale-Codes-3.52"
>3.52
  (SBECK on 2017-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.51"
>3.51
  (SBECK on 2017-04-10)</option>
<option
  
  value="SBECK/Locale-Codes-3.50"
>3.50
  (SBECK on 2017-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.42"
>3.42
  (SBECK on 2016-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.41"
>3.41
  (SBECK on 2016-11-18)</option>
<option
  
  value="SBECK/Locale-Codes-3.40"
>3.40
  (SBECK on 2016-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.39"
>3.39
  (SBECK on 2016-05-31)</option>
<option
  
  value="SBECK/Locale-Codes-3.38"
>3.38
  (SBECK on 2016-03-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.37"
>3.37
  (SBECK on 2015-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.36"
>3.36
  (SBECK on 2015-09-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.35"
>3.35
  (SBECK on 2015-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.34"
>3.34
  (SBECK on 2015-03-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.33"
>3.33
  (SBECK on 2014-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.32"
>3.32
  (SBECK on 2014-09-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.31"
>3.31
  (SBECK on 2014-06-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.30"
>3.30
  (SBECK on 2014-03-04)</option>
<option
  
  value="SBECK/Locale-Codes-3.29"
>3.29
  (SBECK on 2014-01-27)</option>
<option
  
  value="SBECK/Locale-Codes-3.28"
>3.28
  (SBECK on 2013-12-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.27"
>3.27
  (SBECK on 2013-09-05)</option>
<option
  
  value="SBECK/Locale-Codes-3.26"
>3.26
  (SBECK on 2013-06-03)</option>
<option
  
  value="SBECK/Locale-Codes-3.25"
>3.25
  (SBECK on 2013-02-28)</option>
<option
  
  value="SBECK/Locale-Codes-3.24"
>3.24
  (SBECK on 2012-12-04)</option>
<option
  
  value="SBECK/Locale-Codes-3.23"
>3.23
  (SBECK on 2012-08-31)</option>
<option
  
  value="SBECK/Locale-Codes-3.22"
>3.22
  (SBECK on 2012-06-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.21"
>3.21
  (SBECK on 2012-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.20"
>3.20
  (SBECK on 2011-12-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.18"
>3.18
  (SBECK on 2011-08-31)</option>
<option
  
  value="SBECK/Locale-Codes-3.17"
>3.17
  (SBECK on 2011-06-28)</option>
<option
  
  value="SBECK/Locale-Codes-3.16"
>3.16
  (SBECK on 2011-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.15"
>3.15
  (SBECK on 2010-12-02)</option>
<option
  
  value="SBECK/Locale-Codes-3.14"
>3.14
  (SBECK on 2010-09-28)</option>
<option
  
  value="SBECK/Locale-Codes-3.13"
>3.13
  (SBECK on 2010-06-04)</option>
<option
  
  value="SBECK/Locale-Codes-3.12"
>3.12
  (SBECK on 2010-04-06)</option>
<option
  
  value="SBECK/Locale-Codes-3.11"
>3.11
  (SBECK on 2010-03-01)</option>
<option
  
  value="SBECK/Locale-Codes-3.10"
>3.10
  (SBECK on 2010-02-18)</option>
<option
  
  value="SBECK/Locale-Codes-3.01"
>3.01
  (SBECK on 2010-02-15)</option>
<option
  
  value="SBECK/Locale-Codes-3.00"
>3.00
  (SBECK on 2010-02-10)</option>
<option
  
  value="NEILB/Locale-Codes-2.07"
>2.07
  (NEILB on 2004-06-10)</option>
<option
  
  value="NEILB/Locale-Codes-2.06"
>2.06
  (NEILB on 2002-07-16)</option>
<option
  
  value="NEILB/Locale-Codes-2.05"
>2.05
  (NEILB on 2002-07-09)</option>
<option
  
  value="NEILB/Locale-Codes-2.04"
>2.04
  (NEILB on 2002-05-23)</option>
<option
  
  value="NEILB/Locale-Codes-2.03"
>2.03
  (NEILB on 2002-03-24)</option>
<option
  
  value="NEILB/Locale-Codes-2.02"
>2.02
  (NEILB on 2002-03-10)</option>
<option
  
  value="NEILB/Locale-Codes-2.01"
>2.01
  (NEILB on 2002-02-18)</option>
<option
  
  value="NEILB/Locale-Codes-1.06"
>1.06
  (NEILB on 2001-03-04)</option>
<option
  
  value="NEILB/Locale-Codes-1.05"
>1.05
  (NEILB on 2001-02-13)</option>
<option
  
  value="NEILB/Locale-Codes-1.04"
>1.04
  (NEILB on 2000-12-21)</option>
<option
  
  value="NEILB/Locale-Codes-1.02"
>1.02
  (NEILB on 2000-05-04)</option>
<option
  
  value="NEILB/Locale-Codes-1.00"
>1.00
  (NEILB on 1998-03-09)</option>
<option
  
  value="NEILB/Locale-Codes-0.003"
>0.003
  (NEILB on 1997-05-10)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/Locale-Codes">Locale-Codes-3.77</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage three &#10;
          • 64 direct dependents &#10;          • 122 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="Locale-Codes-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="Locale-Codes-3.77">
    <input type="hidden" name="author" value="SBECK">
    <input type="hidden" name="distribution" value="Locale-Codes">
    <button type="submit" class="favorite highlight"><span>7</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./Locale::Codes.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>7</span> ++</a>
</div>
   / <span>Locale::Codes</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./Locale::Codes.html#NAME">NAME</a></li>
  <li><a href="./Locale::Codes.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./Locale::Codes.html#SYNOPSIS-(OBJECT-ORIENTED-INTERFACE)">SYNOPSIS (OBJECT-ORIENTED INTERFACE)</a></li>
  <li><a href="./Locale::Codes.html#OBJECT-ORIENTED-METHODS">OBJECT-ORIENTED METHODS</a></li>
  <li><a href="./Locale::Codes.html#TRADITIONAL-INTERFACES">TRADITIONAL INTERFACES</a></li>
  <li><a href="./Locale::Codes.html#COMMON-ALIASES">COMMON ALIASES</a></li>
  <li><a href="./Locale::Codes.html#RETIRED-CODES">RETIRED CODES</a></li>
  <li><a href="./Locale::Codes.html#SEE-ALSO">SEE ALSO</a></li>
  <li><a href="./Locale::Codes.html#KNOWN-BUGS-AND-LIMITATIONS">KNOWN BUGS AND LIMITATIONS</a></li>
  <li><a href="./Locale::Codes.html#BUGS-AND-QUESTIONS">BUGS AND QUESTIONS</a></li>
  <li><a href="./Locale::Codes.html#AUTHOR">AUTHOR</a></li>
  <li><a href="./Locale::Codes.html#COPYRIGHT">COPYRIGHT</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>Locale::Codes - a distribution of modules to handle locale codes</p>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p><b>Locale-Codes</b> is a distribution containing a set of modules designed to work with sets of codes which uniquely identify something. For example, there are codes associated with different countries, different currencies, different languages, etc. These sets of codes are typically maintained in some standard.</p>

<p>This distribution provides a way to work with these lists of codes. Because the data from the various standards is not available in any sort of consistent API, access to the lists is not available in any direct fashion. To compensate for this, the list of codes is stored internally within this distribution, and the distribution is updated on a regular basis to include all known codes at that point in time. This does mean that it is necessary to keep this distribution up-to-date to keep up with the various changes that are made in the various standards.</p>

<p>Traditionally, a module has been created to work with each type of code sets. So, there is a module for working with country lists, one for currency lists, etc. Since version 3.00, all of these individual modules were written as wrappers around a central module (which was not intended to be used directly) which did all of the real work.</p>

<p>Starting with version 3.50, the central module was reworked slightly to provide an object-oriented interface. All of the modules for working with individual types of code sets were reworked to use the improved OO module, so the traditional interfaces still work as they always have. As a result, you are free to use the traditional functional (non-OO) interfaces, or to use the OO interface and bypass the wrapper modules entirely.</p>

<p>Both methods will be supported in the future, so use the one that is best suited to your needs.</p>

<p>Within each type, any number of code sets are allowed. For example, sets of country codes are maintained in several different locations including the ISO-3166 standard, the IANA, and by the United Nations. The lists of countries are similar, but not identical. Multiple code sets are supported, though trying to convert from one code set to another will not always work since the list of countries is not one-to-one.</p>

<p>All data in all of these modules comes directly from the original standards (or as close to direct as possible), so it should be up-to-date at the time of release.</p>

<p>I plan on releasing a new version several times a year to incorporate any changes made in the standards. However, I don&#39;t always know about changes that occur, so if any of the standards change, and you want a new release sooner, just email me and I&#39;ll get one out.</p>

<h1 id="SYNOPSIS-(OBJECT-ORIENTED-INTERFACE)"><a id="SYNOPSIS"></a><a id="SYNOPSIS--OBJECT-ORIENTED-INTERFACE"></a>SYNOPSIS (OBJECT-ORIENTED INTERFACE)</h1>

<pre><code>   use Locale::Codes;
   or
   use Locale::Codes &#39;:constants&#39;;

   $obj = new Locale::Codes &#39;country&#39;;</code></pre>

<h1 id="OBJECT-ORIENTED-METHODS"><a id="OBJECT"></a>OBJECT-ORIENTED METHODS</h1>

<p>The following methods are available.</p>

<p>In all methods, when specifying a code set, the name (as a string) is always available.</p>

<p>Traditionally, you could also use a perl constant to specify the code set. In order to do so with the OO interface, you have to import the constants. To do that, load the module with:</p>

<pre><code>   use Locale::Codes &#39;:constants&#39;;</code></pre>

<dl>

<dt id="new-(-[TYPE-[,CODESET]]-)"><a id="new"></a><a id="new----TYPE--CODESET"></a><b>new ( [TYPE [,CODESET]] )</b></dt>
<dd>

<pre><code>   $obj = new Locale::Codes;
   $obj = new Locale::Codes &#39;country&#39;;
   $obj = new Locale::Codes &#39;country&#39;,&#39;alpha-3&#39;;
   $obj = new Locale::Codes &#39;country&#39;,LOCALE_COUNTRY_ALPHA_3;</code></pre>

<p>This creates a new object that can access the data. If no type is specified (in the first argument), you must use the <b>type</b> method described below. No operations will work unless the type is specified.</p>

<p>The second argument is the default code set to use. This is optional, as each type has a default code set. The default code set can be set using the <b>codeset</b> method below.</p>

<p>The last example is only available if the constants were imported when the module was loaded.</p>

</dd>
<dt id="show_errors-(-FLAG-)"><a id="show_errors"></a><a id="show_errors---FLAG"></a><b>show_errors ( FLAG )</b></dt>
<dd>

<pre><code>   $obj-&gt;show_errors(1);
   $obj-&gt;show_errors(0);</code></pre>

<p>By default, error messages will be produced when bad data is passed to any method. By passing in &#39;0&#39;, these will be turned off so that all failures will be silent.</p>

</dd>
<dt id="type-(-TYPE-)"><a id="type"></a><a id="type---TYPE"></a><b>type ( TYPE )</b></dt>
<dd>

<pre><code>   $obj-&gt;type($type)</code></pre>

<p>This will set the type of codes that will be worked with. <code>$type</code> may be any of the recognized types of code sets, including:</p>

<pre><code>   country
   language
   currency
   script
   etc.</code></pre>

<p>The list of valid types, and the code sets supported in each, are described in the <a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Codes/Types.pod">Locale::Codes::Types</a> document.</p>

<p>This method can be called any number of times to toggle between different types of code sets.</p>

</dd>
<dt id="codeset-(-CODESET-)"><a id="codeset"></a><a id="codeset---CODESET"></a><b>codeset ( CODESET )</b></dt>
<dd>

<pre><code>   $obj-&gt;codeset($codeset);</code></pre>

<p>This sets the default code set to use. The list of code sets available for each type are described in the <a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Codes/Types.pod">Locale::Codes::Types</a> document.</p>

<p>In all other methods below, when an optional <b>CODESET</b> argument is omitted, it will default to this value.</p>

</dd>
<dt id="code2name-(-CODE-[,CODESET]-[,&#39;retired&#39;]-)"><a id="code2name"></a><a id="code2name---CODE--CODESET---retired"></a><b>code2name ( CODE [,CODESET] [,&#39;retired&#39;] )</b></dt>
<dd>

<pre><code>   $name = $obj-&gt;code2name($code [,$codeset] [,&#39;retired&#39;]);</code></pre>

<p>This functions take a code and returns a string which contains the name of the element identified. If the code is not a valid code in the <b>CODESET</b> specified then <code>undef</code> will be returned.</p>

<p>The name of the element is the name as specified in the standard, and as a result, different variations of an element name may be returned for different values of <b>CODESET</b>.</p>

<p>For example, the alpha-2 country code set defines the two-letter code &quot;bo&quot; to be &quot;Bolivia, Plurinational State of&quot;, whereas the alpha-3 code set defines the code &#39;bol&#39; to be the country &quot;Bolivia (Plurinational State of)&quot;. So:</p>

<pre><code>   $obj-&gt;code2name(&#39;bo&#39;,&#39;alpha-2&#39;);
      =&gt; &#39;Bolivia, Plurinational State of&#39;

   $obj-&gt;code2name(&#39;bol&#39;,&#39;alpha-3&#39;);
      =&gt; &#39;Bolivia (Plurinational State of)&#39;</code></pre>

<p>By default, only active codes will be used, but if the string &#39;retired&#39; is passed in as an argument, both active and retired codes will be examined.</p>

</dd>
<dt id="code2names-(-CODE-[,CODESET]-)"><a id="code2names"></a><a id="code2names---CODE--CODESET"></a><b>code2names ( CODE [,CODESET] )</b></dt>
<dd>

<pre><code>   @name = $obj-&gt;code2names($code [,$codeset]);</code></pre>

<p>This functions take a code and returns a list of all names and aliases associated with that code.</p>

<p>Only active codes may be used and only active names and aliases will be returned.</p>

</dd>
<dt id="name2code-(-NAME-[,CODESET]-[,&#39;retired&#39;]-)"><a id="name2code"></a><a id="name2code---NAME--CODESET---retired"></a><b>name2code ( NAME [,CODESET] [,&#39;retired&#39;] )</b></dt>
<dd>

<pre><code>   $code = $obj-&gt;name2code($name [,$codeset] [,&#39;retired&#39;]);</code></pre>

<p>This function takes the name of an element (or any of it&#39;s aliases) and returns the code that corresponds to it, if it exists. If <b>NAME</b> could not be identified as the name of one of the elements, then <code>undef</code> will be returned.</p>

<p>The name is not case sensitive. Also, any known variation of a name may be passed in.</p>

<p>For example, even though the country name returned using &#39;alpha-2&#39; and &#39;alpha-3&#39; country codes for Bolivia are different, either country name may be passed in since for each code set (in addition to the more common alias &#39;Bolivia&#39;). So:</p>

<pre><code>   $obj-&gt;name2code(&#39;Bolivia, Plurinational State of&#39;,&#39;alpha-2&#39;);
      =&gt; bo

   $obj-&gt;name2code(&#39;Bolivia (Plurinational State of)&#39;,&#39;alpha-2&#39;);
      =&gt; bo

   $obj-&gt;name2code(&#39;Bolivia&#39;,&#39;alpha-2&#39;);
      =&gt; bo</code></pre>

<p>By default, only active names will be used, but if the string &#39;retired&#39; is passed in as an argument, both active and retired names will be examined.</p>

</dd>
<dt id="code2code-(-CODE-[,CODESET]-,CODESET2-)"><a id="code2code"></a><a id="code2code---CODE--CODESET---CODESET2"></a><b>code2code ( CODE [,CODESET] ,CODESET2 )</b></dt>
<dd>

<pre><code>   $code = $obj-&gt;code2code($code [,$codeset] ,$codeset2);</code></pre>

<p>This function takes a code from one code set (<b>CODESET</b> or the default code set), and returns the corresponding code from another code set (<b>CODESET2</b>). <b>CODE</b> must exists in the code set specified by <b>CODESET</b> and must have a corresponding code in the code set specified by <b>CODESET2</b> or <code>undef</code> will be returned.</p>

<pre><code>   $obj-&gt;code2code(&#39;fin&#39;,&#39;alpha-3&#39;,&#39;alpha-2&#39;);
      =&gt; &#39;fi&#39;</code></pre>

<p>Note that this function does NOT support retired codes.</p>

</dd>
<dt id="all_codes-(-[CODESET]-[,&#39;retired&#39;]-)"><a id="all_codes"></a><a id="all_codes----CODESET---retired"></a><b>all_codes ( [CODESET] [,&#39;retired&#39;] )</b></dt>
<dd>

<pre><code>   @code = $obj-&gt;all_codes([$codeset] [,&#39;retired&#39;]);</code></pre>

<p>This returns a list of all code in the code set. The codes will be sorted.</p>

<p>By default, only active codes will be returned, but if the string &#39;retired&#39; is passed in as an argument, both active and retired codes will be returned.</p>

</dd>
<dt id="all_names-(-[CODESET]-[,&#39;retired&#39;]-)"><a id="all_names"></a><a id="all_names----CODESET---retired"></a><b>all_names ( [CODESET] [,&#39;retired&#39;] )</b></dt>
<dd>

<pre><code>   @name = $obj-&gt;all_names([$codeset] [,&#39;retired&#39;]);</code></pre>

<p>This method returns a list of all elements names for which there is a corresponding code in the specified code set.</p>

<p>The names returned are exactly as they are specified in the standard, and are sorted.</p>

<p>Since not all elements are listed in all code sets, the list of elements may differ depending on the code set specified.</p>

<p>By default, only active names will be returned, but if the string &#39;retired&#39; is passed in as an argument, both active and retired names will be returned.</p>

</dd>
</dl>

<p>The following additional methods are available and can be used to modify the code list data (and are therefore not generally useful).</p>

<dl>

<dt id="rename_code-(-CODE-,NEW_NAME-[,CODESET]-)"><a id="rename_code"></a><a id="rename_code---CODE--NEW_NAME--CODESET"></a><b>rename_code ( CODE ,NEW_NAME [,CODESET] )</b></dt>
<dd>

<pre><code>   $flag = $obj-&gt;rename_code($code,$new_name [,$codeset]);</code></pre>

<p>This method can be used to change the official name of an element. At that point, the name returned by the <code>code2name</code> method would be <b>NEW_NAME</b> instead of the name specified in the standard.</p>

<p>The original name will remain as an alias.</p>

<p>For example, the official country name for code &#39;gb&#39; is &#39;United Kingdom&#39;. If you want to change that, you might call:</p>

<pre><code>   $obj-&gt;rename_code(&#39;gb&#39;, &#39;Great Britain&#39;);</code></pre>

<p>This means that calling code2name(&#39;gb&#39;) will now return &#39;Great Britain&#39; instead of &#39;United Kingdom&#39;.</p>

<p>If any error occurs, a warning is issued and 0 is returned. An error occurs if <b>CODE</b> doesn&#39;t exist in the specified code set, or if <b>NEW_NAME</b> is already in use but for a different element.</p>

<p>If the method succeeds, 1 is returned.</p>

</dd>
<dt id="add_code-(-CODE-,NAME-[,CODESET]-)"><a id="add_code"></a><a id="add_code---CODE--NAME--CODESET"></a><b>add_code ( CODE ,NAME [,CODESET] )</b></dt>
<dd>

<pre><code>   $flag = $obj-&gt;add_code($code,$name [,$codeset]);</code></pre>

<p>This method is used to add a new code and name to the data.</p>

<p>Both <b>CODE</b> and <b>NAME</b> must be unused in the data set or an error occurs (though <b>NAME</b> may be used in a different data set).</p>

<p>For example, to create the fictitious country named &quot;Duchy of Grand Fenwick&quot; with codes &quot;gf&quot; and &quot;fen&quot;, use the following:</p>

<pre><code>   $obj-&gt;add_code(&quot;fe&quot;,&quot;Duchy of Grand Fenwick&quot;,&#39;alpha-2&#39;);
   $obj-&gt;add_code(&quot;fen&quot;,&quot;Duchy of Grand Fenwick&quot;,&#39;alpha-3&#39;);</code></pre>

<p>The return value is 1 on success, 0 on an error.</p>

</dd>
<dt id="delete_code-(-CODE-[,CODESET]-)"><a id="delete_code"></a><a id="delete_code---CODE--CODESET"></a><b>delete_code ( CODE [,CODESET] )</b></dt>
<dd>

<pre><code>   $flag = $obj-&gt;delete_code($code [,$codeset]);</code></pre>

<p>This method is used to delete a code from the data.</p>

<p><b>CODE</b> must refer to an existing code in the code set.</p>

<p>The return value is 1 on success, 0 on an error.</p>

</dd>
<dt id="add_alias-(-NAME-,NEW_NAME-)"><a id="add_alias"></a><a id="add_alias---NAME--NEW_NAME"></a><b>add_alias ( NAME ,NEW_NAME )</b></dt>
<dd>

<pre><code>   $flag = $obj-&gt;add_alias($name,$new_name);</code></pre>

<p>This method is used to add a new alias to the data. They do not alter the return value of the <code>code2name</code> function.</p>

<p><b>NAME</b> must be an existing element name, and <b>NEW_NAME</b> must be unused or an error occurs.</p>

<p>The return value is 1 on success, 0 on an error.</p>

</dd>
<dt id="delete_alias-(-NAME-)"><a id="delete_alias"></a><a id="delete_alias---NAME"></a><b>delete_alias ( NAME )</b></dt>
<dd>

<pre><code>   $flag = $obj-&gt;delete_alias($name);</code></pre>

<p>This method is used to delete an alias from the data. Once removed, the element may not be referred to by <b>NAME</b>.</p>

<p><b>NAME</b> must be one of a list of at least two names that may be used to specify an element. If the element may only be referred to by a single name, you&#39;ll need to use the <code>add_alias</code> method to add a new alias first, or the <code>remove_code</code> method to remove the element entirely.</p>

<p>If the alias is used as the name in any code set, one of the other names will be used instead. Predicting exactly which one will be used requires you to know the order in which the standards were read, which is not reliable, so you may want to use the <code>rename_code</code> method to force one of the alternate names to be used.</p>

<p>The return value is 1 on success, 0 on an error.</p>

</dd>
<dt id="replace_code-(-CODE-,NEW_CODE-[,CODESET]-)"><a id="replace_code"></a><a id="replace_code---CODE--NEW_CODE--CODESET"></a><b>replace_code ( CODE ,NEW_CODE [,CODESET] )</b></dt>
<dd>

<pre><code>   $flag = $obj-&gt;replace_code($code,$new_code [,$codeset]);</code></pre>

<p>This method is used to change the official code for an element. At that point, the code returned by the <code>name2code</code> method would be <b>NEW_CODE</b> instead of the code specified in the standard.</p>

<p><b>NEW_CODE</b> may either be a code that is not in use, or it may be an alias for <b>CODE</b> (in which case, <b>CODE</b> becomes and alias and <b>NEW_CODE</b> becomes the &quot;real&quot; code).</p>

<p>The original code is kept as an alias, so that the <code>code2name</code> routines will work with either the code from the standard or the new code.</p>

<p>However, the <code>all_codes</code> method will only return the codes which are considered &quot;real&quot; (which means that the list of codes will now contain <b>NEW_CODE</b>, but will not contain <b>CODE</b>).</p>

</dd>
<dt id="add_code_alias-(-CODE-,NEW_CODE-[,CODESET]-)"><a id="add_code_alias"></a><a id="add_code_alias---CODE--NEW_CODE--CODESET"></a><b>add_code_alias ( CODE ,NEW_CODE [,CODESET] )</b></dt>
<dd>

<pre><code>   $flag = $obj-&gt;add_code_alias($code,$new_code [,$codeset]);</code></pre>

<p>This method adds an alias for the code. At that point, <b>NEW_CODE</b> and <b>CODE</b> will both work in the <code>code2name</code> method. However, the <code>name2code</code> method will still return the original code.</p>

</dd>
<dt id="delete_code_alias-(-CODE-[,CODESET]-)"><a id="delete_code_alias"></a><a id="delete_code_alias---CODE--CODESET"></a><b>delete_code_alias ( CODE [,CODESET] )</b></dt>
<dd>

<p>These routines delete an alias for the code.</p>

<p>These will only work if <b>CODE</b> is actually an alias. If it is the &quot;real&quot; code, it will not be deleted. You will need to use the <code>rename_code</code> method to switch the real code with one of the aliases, and then delete the alias.</p>

</dd>
</dl>

<h1 id="TRADITIONAL-INTERFACES"><a id="TRADITIONAL"></a>TRADITIONAL INTERFACES</h1>

<p>In addition the the primary OO module, the following modules are included in the distribution for the traditional way of working with code sets.</p>

<p>Each module will work with one specific type of code sets.</p>

<dl>

<dt id="Locale::Codes::Country,-Locale::Country"><a id="Locale"></a><a id="Locale::Codes::Country--Locale::Country"></a><a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Codes/Country.pod">Locale::Codes::Country</a>, <a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Country.pod">Locale::Country</a></dt>
<dd>

<p>This includes support for country codes (such as those listed in ISO-3166) to specify the country.</p>

<p>Because this module was originally distributed as <a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Country.pod">Locale::Country</a>, it is also available under that name.</p>

</dd>
<dt id="Locale::Codes::Language,-Locale::Language"><a id="Locale1"></a><a id="Locale::Codes::Language--Locale::Language"></a><a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Codes/Language.pod">Locale::Codes::Language</a>, <a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Language.pod">Locale::Language</a></dt>
<dd>

<p>This includes support for language codes (such as those listed in ISO-639) to specify the language.</p>

<p>Because this module was originally distributed as <a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Language.pod">Locale::Language</a>, it is also available under that name.</p>

</dd>
<dt id="Locale::Codes::Currency,-Locale::Currency"><a id="Locale2"></a><a id="Locale::Codes::Currency--Locale::Currency"></a><a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Codes/Currency.pod">Locale::Codes::Currency</a>, <a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Currency.pod">Locale::Currency</a></dt>
<dd>

<p>This includes support for currency codes (such as those listed in ISO-4217) to specify the currency.</p>

<p>Because this module was originally distributed as <a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Currency.pod">Locale::Currency</a>, it is also available under that name.</p>

</dd>
<dt id="Locale::Codes::Script,-Locale::Script"><a id="Locale3"></a><a id="Locale::Codes::Script--Locale::Script"></a><a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Codes/Script.pod">Locale::Codes::Script</a>, <a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Script.pod">Locale::Script</a></dt>
<dd>

<p>This includes support for script codes (such as those listed in ISO-15924) to specify the script.</p>

<p>Because this module was originally distributed as <a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Script.pod">Locale::Script</a>, it is also available under that name.</p>

</dd>
<dt id="Locale::Codes::LangExt"><a id="Locale4"></a><a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Codes/LangExt.pod">Locale::Codes::LangExt</a></dt>
<dd>

<p>This includes support for language extension codes (such as those listed in the IANA language registry) to specify the language extension.</p>

</dd>
<dt id="Locale::Codes::LangVar"><a id="Locale5"></a><a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Codes/LangVar.pod">Locale::Codes::LangVar</a></dt>
<dd>

<p>This includes support for language variation codes (such as those listed in the IANA language registry) to specify the language variation.</p>

</dd>
<dt id="Locale::Codes::LangFam"><a id="Locale6"></a><a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Codes/LangFam.pod">Locale::Codes::LangFam</a></dt>
<dd>

<p>This includes support for language family codes (such as those listed in ISO 639-5) to specify families of languages.</p>

</dd>
</dl>

<p>In addition to the modules above, there are a number of support modules included in the distribution. Any module not listed above falls into that category.</p>

<p>These modules are not intended to be used by programmers. They contain functions or data that are used by the modules listed above. No support of any kind is offered for using these modules directly. They may be modified at any time.</p>

<h1 id="COMMON-ALIASES"><a id="COMMON"></a>COMMON ALIASES</h1>

<p>As of version 2.00, the modules supported common variants of names.</p>

<p>For example, Locale::Country supports variant names for countries, and a few of the most common ones are included in the data. The country code for &quot;United States&quot; is &quot;us&quot;, so:</p>

<pre><code>   country2code(&#39;United States&#39;);
     =&gt; &quot;us&quot;</code></pre>

<p>Now the following will also return &#39;us&#39;:</p>

<pre><code>   country2code(&#39;United States of America&#39;);
   country2code(&#39;USA&#39;);</code></pre>

<p>Any number of common aliases may be included in the data, in addition to the names that come directly from the standards. If you have a common alias for a country, language, or any other of the types of codes, let me know and I&#39;ll add it, with some restrictions.</p>

<p>For example, the country name &quot;North Korea&quot; never appeared in any of the official sources (instead, it was &quot;Korea, North&quot; or &quot;Korea, Democratic People&#39;s Republic of&quot;. I would honor a request to add an alias &quot;North Korea&quot; since that&#39;s a very common way to specify the country (please don&#39;t request this... I&#39;ve already added it).</p>

<p>On the other hand, a request to add Zaire as an alias for &quot;Congo, The Democratic Republic of&quot; will not be honored. The country&#39;s official name is no longer Zaire, so adding it as an alias violates the standard. Zaire was kept as an alias in versions of this module prior to 3.00, but it has been removed. Other aliases (if any) which no longer appear in any standard (and which are not common variations of the name in the standards) have also been removed.</p>

<h1 id="RETIRED-CODES"><a id="RETIRED"></a>RETIRED CODES</h1>

<p>Occasionally, a code is deprecated, but it may still be desirable to have access to it.</p>

<p>Although there is no way to see every code that has ever existed and been deprecated (since most codesets do not have that information available), as of version 3.20, every code which has ever been included in these modules can be referenced.</p>

<p>For more information, refer to the documentation on the code2name, name2code, all_codes, and all_names methods above.</p>

<h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1>

<dl>

<dt id="Locale::Codes::Types"><a id="Locale7"></a><a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Codes/Types.pod">Locale::Codes::Types</a></dt>
<dd>

<p>The list of all code sets available for each type.</p>

</dd>
<dt id="Locale::Codes::Changes"><a id="Locale8"></a><a href="https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Codes/Changes.pod">Locale::Codes::Changes</a></dt>
<dd>

<p>A history of changes made to this distribution.</p>

</dd>
</dl>

<h1 id="KNOWN-BUGS-AND-LIMITATIONS"><a id="KNOWN"></a>KNOWN BUGS AND LIMITATIONS</h1>

<dl>

<dt id="Relationship-between-code-sets"><a id="Relationship"></a><b>Relationship between code sets</b></dt>
<dd>

<p>Because each code set uses a slightly different list of elements, and they are not necessarily one-to-one, there may be some confusion about the relationship between codes from different code sets.</p>

<p>For example, ISO 3166 assigns one code to the country &quot;United States Minor Outlying Islands&quot;, but the IANA codes give different codes to different islands (Baker Island, Howland Island, etc.).</p>

<p>This may cause some confusion... I&#39;ve done the best that I could do to minimize it.</p>

</dd>
<dt id="Non-ASCII-characters-not-supported"><a id="Non"></a><b>Non-ASCII characters not supported</b></dt>
<dd>

<p>Currently all names must be all ASCII. I plan on relaxing that limitation in the future.</p>

</dd>
</dl>

<h1 id="BUGS-AND-QUESTIONS"><a id="BUGS"></a>BUGS AND QUESTIONS</h1>

<p>If you find a bug in Locale::Codes, there are three ways to send it to me. In order of preference, they are:</p>

<dl>

<dt id="GitHub">GitHub</dt>
<dd>

<p>You can submit it as an issue on GitHub. This can be done at the following URL:</p>

<p><a href="https://github.com/SBECK-github/Locale-Codes">https://github.com/SBECK-github/Locale-Codes</a></p>

<p>This is the preferred method. Please submit problems requests as GitHub issues if at all possible.</p>

</dd>
<dt id="Direct-email"><a id="Direct"></a>Direct email</dt>
<dd>

<p>You are welcome to send it directly to me by email. The email address to use is: sbeck@cpan.org.</p>

<p>Please note that because cpan.org addresses are published, they are used by a lot of spammers and phishers. Please include the name of the perl module in the subject line of ALL messages sent to my cpan.org address or it will likely be missed.</p>

</dd>
<dt id="CPAN-Bug-Tracking"><a id="CPAN"></a>CPAN Bug Tracking</dt>
<dd>

<p>You can submit it using the CPAN tracking tool. This can be done at the following URL:</p>

<p><a href="http://rt.cpan.org/Public/Dist/Display.html?Name=Locale-Codes">http://rt.cpan.org/Public/Dist/Display.html?Name=Locale-Codes</a></p>

<p>There was discussion of halting this service a while back (though it continues to function), so only use this as a last resort.</p>

</dd>
</dl>

<p>Please do not use other means to report bugs (such as forums for a specific OS or Linux distribution) as it is impossible for me to keep up with all of them. These are the current methods that are guaranteed to notify me.</p>

<p>When filing a bug report, please include the following information:</p>

<dl>

<dt id="Locale::Codes-version"><a id="Locale9"></a><b>Locale::Codes version</b></dt>
<dd>

<p>Please include the version of Locale::Codes you are using. You can get this by using the script:</p>

<pre><code>   use Locale::Codes;
   print $Locale::Codes::VERSION,&quot;\n&quot;;</code></pre>

</dd>
</dl>

<p>If you want to report missing or incorrect codes, you must be running the most recent version of Locale::Codes.</p>

<p>If you find any problems with the documentation (errors, typos, or items that are not clear), please send them to me. I welcome any suggestions that will allow me to improve the documentation.</p>

<h1 id="AUTHOR">AUTHOR</h1>

<p>Locale::Country and Locale::Language were originally written by Neil Bowers at the Canon Research Centre Europe (CRE). They maintained the distribution from 1997 to 2001.</p>

<p>Locale::Currency was originally written by Michael Hennecke and was modified by Neil Bowers for inclusion in the distribution.</p>

<p>From 2001 to 2004, maintenance was continued by Neil Bowers. He modified Locale::Currency for inclusion in the distribution. He also added Locale::Script.</p>

<p>From 2004-2009, the module was unmaintained.</p>

<p>In 2010, maintenance was taken over by Sullivan Beck (sbeck@cpan.org) with Neil Bower&#39;s permission. All problems or comments should be sent to him using any of the methods listed above.</p>

<h1 id="COPYRIGHT">COPYRIGHT</h1>

<pre><code>   Copyright (c) 1997-2001 Canon Research Centre Europe (CRE).
   Copyright (c) 2001      Michael Hennecke (Locale::Currency)
   Copyright (c) 2001-2010 Neil Bowers
   Copyright (c) 2010-2023 Sullivan Beck</code></pre>

<p>This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install Locale::Codes, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm Locale::Codes</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install Locale::Codes</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./Locale::Codes.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
